import Vue from 'vue'
import VueRouter from 'vue-router'

const CleanerHome = () => import('@/views/CleanerWork/Home.vue')
const TrafficHome = () => import('@/views/TrafficEngineer/trafficHome.vue')
const TrackThePlayback = () => import('@/views/CleanerWork/TrackThePlayback.vue')

Vue.use(VueRouter)

const routes = [{
    path: '/cleaner',
    component: CleanerHome,
    meta:{title: '人工道路作业系统'}
  },
  {
    path: '/traffic',
    component: TrafficHome,
    meta:{title: '车务机务系统'}
  },
  {
    path: '/playback/:VID',
    name: 'playback',
    component: TrackThePlayback,
    meta:{title: '人工道路作业系统'}
  }
]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router
